package zyAll.animalParadise;

/**
 * 唐小鸭类
 */
public class Duck extends Animal implements Terrestrial{

    public Duck(String name) {
        super(name);
    }

    @Override
    public void shout() {
        System.out.print("\t\t\t嘎嘎嘎---");
    }

    @Override
    public void leg(int leg) {
        System.out.print("\t\t"+leg);
    }

    public void show(){
        System.out.print("\n"+this.getName());
    }
}
